package com.lingyue.entity.module.def.mapper;

import com.lingyue.entity.dto.DefeatCommonDTO;
import com.lingyue.entity.module.def.entity.FailedReasonEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
 *  Mapper 接口
 * </p>
*
* @author deep
* @since 2020-01-07
*/
 public interface FailedReasonMapper extends BaseMapper<FailedReasonEntity> {

 /**
  * 查询战败原因数据
  * @param parentCode
  * @return
  */
 List<DefeatCommonDTO> selectDefeatList(@Param("parentCode") String parentCode);

 /**
  * 查询流失方向数据
  * @param parentCode
  * @param dealerId
  * @return
  */
 List<DefeatCommonDTO> selectLossList(@Param("parentCode") String parentCode,
                                      @Param("dealerId") String dealerId);

 }
